package likou.jindian;

import java.util.Arrays;

/**
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/03/15 07:05
 */
public class _16_01 {
    public static void main(String[] args) {
        int[] numbers = new int[]{1,2};
        numbers[0] = numbers[0]+numbers[1];
        numbers[1] = numbers[0]-numbers[1];
        numbers[0] = numbers[0]-numbers[1];
        System.out.println(Arrays.toString(numbers));

        numbers[0] = numbers[0]^numbers[1];
        numbers[1] = numbers[0]^numbers[1];
        numbers[0] = numbers[0]^numbers[1];
        System.out.println(Arrays.toString(numbers));
    }
}
